package com.springcloud.feign.api;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description : api接口
 * @Author : asus
 * @Version : xxx
 * @Date : 2021/6/14 22:32
 */
@FeignClient(value = "service-provider", contextId="OpenApi", url = "http://192.168.195.1:8080")
public interface OpenApi {
    @GetMapping("/echo/{hello}")
    String hello(@PathVariable String hello);
}
